package com.jy.it.ui.admin;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.jy.it.entity.Admin;
import com.jy.it.util.EmailUtil;

@Controller
public class AdminEmailController {
	@Autowired
	private EmailUtil emailUtil;
	
	@RequestMapping(value="/admin/email",method=RequestMethod.GET)
	public String login() {
		return "admin/admin_send_mail";
	}
	@RequestMapping(value="/admin/email",method=RequestMethod.POST)
	public String SendEmail(String title,String content,HttpSession session,Model m) {
		
		return "admin/admin_nav";
	}
}
